import request from '@/utils/request'

export function fetchUserData() {
    return request.get('https://api.github.com/users/woai3c')
}

export function getAllUser() {
    return request.get('http://localhost:8021/wish/user')
}

export function updateUser(res) {
    return request.post('http://localhost:8021/wish/user/update', res)
}